<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/resource/img/favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <style media="print">
        @page {
            size: auto;
            margin: 0mm;
        }
    </style>
    <script src="/common.js"></script>
    <script type="text/javascript" src="${ctx}/plugin/canvas/html2canvas.min.js"></script>
    <script type="text/javascript" src="${ctx}/plugin/canvas/canvas2image.js"></script>
    <title>打印申请协议</title>
</head>
<body>

<div class="print-page" style="page-break-after:always">
    <div class="print-header">
        <div class="print-logo">
            <img src="${ctx}/platform/resource/img/logo.png"/>
        </div>
    </div>
    <h2>
        <span>职工医疗互助申领补助申请书</span>
        <span>档案编号：${hzClaim.claimno}</span>
    </h2>
    <div class="print-content">
        <div class="print-insurance">

            <table>
                <tr>
                    <th>申领人<br>(联系方式)</th>
                    <td>${hzClaim.person.name}（${hzClaim.personmobile}）</td>
                    <th>经办人<br>(联系方式)</th>
                    <td>${hzClaim.contactname} （${hzClaim.contactmobile}）</td>
                </tr>
                <tr>
                    <th>证件号码</th>
                    <td>${hzClaim.person.idCard}</td>
                    <th>经办单位</th>
                    <td>${hzClaim.unitname}</td>
                </tr>
                <tr>
                    <th>银行名称</th>
                    <td>${hzClaim.bankname}</td>
                    <th>银行卡号（行号）</th>
                    <td>${hzClaim.bankcard}()</td>
                </tr>
                <tr>
                    <th>入会计划</th>
                    <td>${hzPolicyInsurance.insurancename} （￥${hzPolicyInsurance.price}/1份）</td>
                    <th>保障期</th>
                    <td>
                        <fmt:formatDate value="${hzPolicyInsurance.starttime}" pattern="yyyy-MM-dd"/>
                        零时至
                        <fmt:formatDate value="${hzPolicyInsurance.endtime}" pattern="yyyy-MM-dd"/>
                        二十四时止
                    </td>
                </tr>
                <tr>
                    <th>所在单位工会意见(签章)</th>
                    <td colspan="3" class="tdnew" style="padding:0px;margin:0px;line-height:250%;">
                        <div class="centerdiv"
                             style="width:50%;float:left;border-right:1px solid #999; word-wrap: break-word; word-break: normal;">
                            <div class="leftdiv" style="text-align:left;padding-left: 8px;">
                                经办人（签字）：${hzClaim.contactname}
                            </div>
                            <div class="rightdiv" style="text-align:right;padding-right: 9px;">
                                <fmt:formatDate value="${hzClaim.submitdate}" pattern="yyyy 年 MM 月 dd 日"/>
                            </div>
                        </div>
                        <div class="centerdiv" style="width:49%;float:left;word-wrap: break-word; word-break: normal;">
                            <div class="leftdiv" style="text-align:left;padding-left: 8px;">负责人（签字）：</div>
                            <div class="rightdiv" style="text-align:right;padding-right: 7px;">年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日</div>
                        </div>
                    </td>

                </tr>
                <tr>
                    <th rowspan="2">代办点审核意见(签章)</th>
                    <td colspan="3">
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;经审核，<u> ${hzClaim.person.name} </u>
                        同志本次的住院费用：<u>&nbsp;&nbsp;${D01}&nbsp;&nbsp;</u>，
                        符合基本医疗费用<u>&nbsp;&nbsp;${D03}&nbsp;&nbsp;</u>，
                        统筹支付<u>&nbsp;&nbsp;${D02}&nbsp;&nbsp;</u>，起付自付<u>&nbsp;&nbsp;${D04}&nbsp;&nbsp;</u>。
                        本次申领的职工医疗互助补助金额为：<br>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;小写<u>&nbsp;&nbsp;${hzClaim.claimamount}&nbsp;&nbsp;元</u>，
                        大写<u>&nbsp;&nbsp;${claimAmount}&nbsp;&nbsp;</u>，符合规定。
                    </td>
                </tr>
                <tr>
                    <td colspan="3" class="tdnew" style="padding:0px;margin:0px;line-height:250%;">
                        <div class="centerdiv"
                             style="width:50%;float:left;border-right:1px solid #999; word-wrap: break-word; word-break: normal;">
                            <div class="leftdiv" style="text-align:left;padding-left: 8px;">经办人：
                                <c:choose>
                                    <c:when test="${dbd !=''}"><img src="${dbd}" width="120" height="50"
                                                                    style="margin-left:30px;"></c:when>
                                    <c:otherwise>${dbdName}</c:otherwise>
                                </c:choose>
                            </div>
                            <div class="rightdiv" style="text-align:right;padding-right: 9px;">
                                <fmt:formatDate value="${dbdDate}" pattern="yyyy 年 MM 月 dd 日"/>
                            </div>
                        </div>
                        <div class="centerdiv" style="width:49%;float:left;word-wrap: break-word; word-break: normal;">
                            <div class="leftdiv" style="text-align:left;padding-left: 8px;">负责人：
                                <c:choose>
                                    <c:when test="${dbdld !=''}"><img src="${dbdld}" width="120" height="50"
                                                                      style="margin-left:30px;"></c:when>
                                    <c:otherwise>${dbdldName}</c:otherwise>
                                </c:choose>
                            </div>
                            <div class="rightdiv" style="text-align:right;padding-right: 7px;">
                                <fmt:formatDate value="${dbdldDate}" pattern="yyyy 年 MM 月 dd 日"/>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <th>办事处审核意见(签章)</th>
                    <td colspan="3" class="tdnew" style="padding:0px;margin:0px;line-height:250%;">
                        <div class="centerdiv"
                             style="width:50%;float:left;border-right:1px solid #999; word-wrap: break-word; word-break: normal;">
                            <div class="leftdiv" style="text-align:left;padding-left: 8px;">经办人：
                                <c:choose>
                                    <c:when test="${bsc !=''}"><img src="${bsc}" width="120" height="50"
                                                                    style="margin-left:30px;"></c:when>
                                    <c:otherwise>${bscName}</c:otherwise>
                                </c:choose>
                            </div>
                            <div class="rightdiv" style="text-align:right;padding-right: 9px;">
                                <fmt:formatDate value="${bscDate}" pattern="yyyy 年 MM 月 dd 日"/>
                            </div>
                        </div>
                        <div class="centerdiv" style="width:49%;float:left;word-wrap: break-word; word-break: normal;">
                            <div class="leftdiv" style="text-align:left;padding-left: 8px;">审核领导：</div>
                            <div class="rightdiv" style="text-align:right;padding-right: 7px;"></div>
                        </div>
                    </td>

                </tr>
                <tr>
                    <th>互助办审核意见(签章)</th>
                    <td colspan="3" class="tdnew" style="padding:0px;margin:0px;line-height:250%;">
                        <div class="centerdiv"
                             style="width:50%;float:left;border-right:1px solid #999; word-wrap: break-word; word-break: normal;">
                            <div class="leftdiv" style="text-align:left;padding-left: 8px;">经办人：
                                <c:choose>
                                    <c:when test="${hzb !=''}"><img src="${hzb}" width="120" height="50"
                                                                    style="margin-left:30px;"></c:when>
                                    <c:otherwise>${hzbName}</c:otherwise>
                                </c:choose>
                            </div>
                            <div class="rightdiv" style="text-align:right;padding-right: 9px;">
                                <fmt:formatDate value="${hzbDate}" pattern="yyyy 年 MM 月 dd 日"/>
                            </div>
                        </div>
                        <div class="centerdiv" style="width:49%;float:left;word-wrap: break-word; word-break: normal;">
                            <div class="leftdiv" style="text-align:left;padding-left: 8px;">审核领导：
                                <c:choose>
                                    <c:when test="${hzbld !=''}"><img src="${hzbld}" width="120" height="50"
                                                                      style="margin-left:30px;"></c:when>
                                    <c:otherwise>${hzbldName}</c:otherwise>
                                </c:choose>
                            </div>
                            <div class="rightdiv" style="text-align:right;padding-right: 9px;">
                                <fmt:formatDate value="${hzbldDate}" pattern="yyyy 年 MM 月 dd 日"/>
                            </div>
                        </div>
                    </td>

                </tr>
                <tr>
                    <th>补助金支付审批</th>
                    <td colspan="3" class="tdnew" style="padding:0px;margin:0px;line-height:250%;">
                        <div class="centerdiv"
                             style="width:50%;float:left;border-right:1px solid #999; word-wrap: break-word; word-break: normal;">
                            <div class="leftdiv" style="text-align:left;padding: 8px;">财务审核：
                                <c:choose>
                                    <c:when test="${cw !=''}"><img src="${cw}" width="120" height="50"
                                                                   style="margin-left:30px;"></c:when>
                                    <c:otherwise>${cwName}</c:otherwise>
                                </c:choose>
                            </div>
                            <div class="rightdiv" style="text-align:right;padding-right: 9px;">
                                <fmt:formatDate value="${cwDate}" pattern="yyyy 年 MM 月 dd 日"/>
                            </div>
                        </div>
                        <div class="centerdiv" style="width:49%;float:left;word-wrap: break-word; word-break: normal;">
                            <div class="leftdiv" style="text-align:left;padding: 8px;">互助办主任：
                                <c:choose>
                                    <c:when test="${hzbzr !=''}"><img src="${hzbzr}" width="120" height="50"
                                                                      style="margin-left:30px;"></c:when>
                                    <c:otherwise>${hzbzrName}</c:otherwise>
                                </c:choose>
                            </div>
                            <div class="rightdiv" style="text-align:right;padding-right: 9px;">
                                <fmt:formatDate value="${hzbzrDate}" pattern="yyyy 年 MM 月 dd 日"/>
                            </div>
                        </div>
                    </td>

                </tr>
                <tr>
                    <th>互助金申领资料</th>
                    <td colspan="3">
                        <c:forEach items="${hzConfFiles}" var="hzConfFile" varStatus="hzConfFileIndex">
                            <p>${hzConfFileIndex.index + 1}、${hzConfFile.name} （${hzConfFile.fileNum}页）</p>
                        </c:forEach>
                    </td>
                </tr>
            </table>
            <div class="print-insurance-sign">
                <p>打印时间：
                    <fmt:formatDate value="${printDate}" pattern="yyyy-MM-dd"/>
                </p>
            </div>
        </div>
    </div>
</div>


<script type="text/javascript">

    function remove_ie_header_and_footer() {
        var hkey_root, hkey_path, hkey_key;
        hkey_path = "HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";
        try {
            var RegWsh = new ActiveXObject("WScript.Shell");
            RegWsh.RegWrite(hkey_path + "header", "");
            RegWsh.RegWrite(hkey_path + "footer", "");
        } catch (e) {
        }
    }

    $(function () {
        try {
            if (!!window.ActiveXObject || "ActiveXObject" in window) {
                remove_ie_header_and_footer();
            }
        } catch (e) {

        }
        window.print();
        setTimeout(function () {
            layer.alert("资料打印完成", {closeBtn: false, title: "打印确认"}, function () {
                window.location.href = "/hzclaim/hzClaimFront/unitClaimDetails?id=${hzClaim.id}";
            });
        }, 1000);

    });

</script>
</body>
</html>
